/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.repair.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springblade.modules.repair.vo.contract.ContractBuildingInfoVo;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * 项目合同信息实体类
 *
 * @author ysq
 * @since 2022-10-26
 */
@Data
@TableName(value = "blade_building_contract_plus", autoResultMap = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "BuildingContractPlus对象", description = "项目合同信息")
public class BuildingContractPlus extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 项目名称逗号分割-冗余字段(用于列表查询)
	 */
	@ApiModelProperty(value = "项目名称逗号分割-冗余字段(用于列表查询)")
	@TableField(typeHandler = FastjsonTypeHandler.class)
	 private List<ContractBuildingInfoVo> buildingInfo;
	/**
	 * 合同编码
	 */
	@ApiModelProperty(value = "合同编码")
	private String contractNo;
	/**
	 * 合同来源	1:新签	2:续签	3:转签	4:丢失	5:夺回	6:新梯移交	7:免保转签
	 */
	@ApiModelProperty(value = "合同来源	1:新签	2:续签	3:转签	4:丢失	5:夺回	6:新梯移交	7:免保转签")
	private Integer contractSource;
	/**
	 * 庸与字段(用于列表刷选)	合同类型	1:保养合同	2:委托合同	3:质保合同	4:维系合同
	 */
	@ApiModelProperty(value = "庸与字段(用于列表刷选)	合同类型	1:保养合同	2:委托合同	3:质保合同	4:维系合同")
	private Integer contractType;
	/**
	 * 客户单位
	 */
	@ApiModelProperty(value = "客户单位")
	private String customerUnit;
	/**
	 * 客户电话
	 */
	@ApiModelProperty(value = "客户电话")
	private String customerPhone;
	/**
	 * 维保单位
	 */
	@ApiModelProperty(value = "维保单位")
	private String maintainUnit;
	/**
	 * 维保主要负责人-签约人
	 */
	@ApiModelProperty(value = "维保主要负责人-签约人")
	private Long maintainMainUser;
	/**
	 * 合同开始时间
	 */
	@ApiModelProperty(value = "合同开始时间")
	private Date contractBeginTime;
	/**
	 * 合同结束时间
	 */
	@ApiModelProperty(value = "合同结束时间")
	private Date contractEndTime;
	/**
	 * 合同状态1:未生效2:已生效3:已到期4:已终止
	 */
	@ApiModelProperty(value = "合同状态1:未生效2:已生效3:已到期4:已终止")
	private Integer contractStatus;
	/**
	 * 合同扩展状态	1:待续签	2:已续签	3:即将到期	4:已脱保	5:已作废
	 */
	@ApiModelProperty(value = "合同扩展状态	1:待续签	2:已续签	3:即将到期	4:已脱保	5:已作废")
	private Integer contractExtStatus;
	/**
	 * 保养类型	1:清包	2:半包	3:全包	4:三包	5:小包	6:免包	7:维修
	 */
	@ApiModelProperty(value = "保养类型	1:清包	2:半包	3:全包	4:三包	5:小包	6:免包	7:维修")
	private Integer maintainType;
	/**
	 * 合同来源	1:外包合同	2:非外包合同
	 */
	@ApiModelProperty(value = "合同来源	1:外包合同	2:非外包合同")
	private Integer fromType;
	/**
	 * 是否需要驻场0:不需要1：需要
	 */
	@ApiModelProperty(value = "是否需要驻场0:不需要1：需要")
	private Integer isLive;
	/**
	 * 年检费用
	 */
	@ApiModelProperty(value = "年检费用")
	private String yearCostDesc;
	/**
	 * 年检费用类型1：包缴，2代缴,3:自缴
	 */
	@ApiModelProperty(value = "年检费用类型1：包缴，2代缴,3:自缴")
	private Integer yearCostType;
	/**
	 * 月保养费用
	 */
	@ApiModelProperty(value = "月保养费用")
	private String monthCostDesc;
	/**
	 * 限速器年检费用
	 */
	@ApiModelProperty(value = "限速器年检费用")
	private String yearSpeedGovernorCost;
	/**
	 * 限速器年检费用类型1：包缴，2代缴,3自缴
	 */
	@ApiModelProperty(value = "限速器年检费用类型1：包缴，2代缴,3自缴")
	private Integer yearSpeedGovernorCostType;
	/**
	 * 合同金额
	 */
	@ApiModelProperty(value = "合同金额")
	private String contractCost;
	/**
	 * 支付方式	1:月结	2:两月结	3:季度结	4:四月结	5:半年结	6:年度结	7:预付50%	8:完结50%	9:一次性付款	10:免费
	 */
	@ApiModelProperty(value = "支付方式	1:月结	2:两月结	3:季度结	4:四月结	5:半年结	6:年度结	7:预付50%	8:完结50%	9:一次性付款	10:免费")
	private Integer payDateDesc;
	/**
	 * 付款周期	1:周期结束时付款	2:周期中期时付款	3:周期开始时付款
	 */
	@ApiModelProperty(value = "付款周期	1:周期结束时付款	2:周期中期时付款	3:周期开始时付款")
	private Integer payDateType;
	/**
	 * 发票类型	1:增值税专用发票	2:增值税普通发票	3:收据	4:已收款未开票	5:已开收据为付款	6:已开收据未开发票	7：预支发票	8：其它
	 */
	@ApiModelProperty(value = "发票类型	1:增值税专用发票	2:增值税普通发票	3:收据	4:已收款未开票	5:已开收据为付款	6:已开收据未开发票	7：预支发票	8：其它")
	private Integer invoiceType;
	/**
	 * 支付方式	1:支票	2:现金	3:电汇	4:成若电汇
	 */
	@ApiModelProperty(value = "支付方式	1:支票	2:现金	3:电汇	4:成若电汇")
	private Integer payType;
	/**
	 * 合同附件地址,逗号分割
	 */
	@ApiModelProperty(value = "合同附件地址,逗号分割")
	private String contractExt;
	/**
	 * 审核状态描述
	 */
	@ApiModelProperty(value = "审核状态描述")
	private String statusDesc;
	/**
	 * 审核人员名称
	 */
	@ApiModelProperty(value = "审核人员名称")
	private String auditorName;
	/**
	 * 回收站状态：0否，1是
	 */
	@ApiModelProperty(value = "回收站状态：0否，1是")
	private Integer disDeleted;
	/**
	 * 合同描述
	 */
	@ApiModelProperty(value = "合同描述")
	private String contractDesc;
	/**
	 * 父级id
	 */
	@ApiModelProperty(value = "父级id")
	private Long parentId;

	@ApiModelProperty(value = "终止时间")
	private Date stopTime;

    @TableField(exist = false)
	private String buildingIds;

	@TableField(exist = false)
	private String elevatorIds;

	@TableField(exist = false)
	private Date beginTime;

	@TableField(exist = false)
	private Date endTime;
}
